<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li {
            width: 500px;
            height: 100px;
            text-align: center;
            line-height: 100px;
            position: absolute;


        }

        li img {
            width: 500px;
            transition: 2s;
            transform: scaleX(1) scaleY(1);

        }

        * {
            margin: 0px;
            padding: 0px;
        }

        ul {
            width: 500px;
            height: 500px;
            list-style: none;
            transform-style: preserve-3d;
            transition: 20s;
            position: absolute;
            top: 600px;
            left: 1300px;
            animation: rg 6s infinite linear;
            transform: rotateX(-15deg);

        }

        @keyframes rg {
            from {
                transform: rotateX(-15deg) rotateY(0deg);
            }

            to {
                transform: rotateX(-15deg) rotateY(360deg);
            }
        }

        ul:hover {
            animation-play-state: paused;

        }

        ul li img:hover {
            transform: scaleX(2) scaleY(2);
            transition: 5s;
            opacity: 0.7;
        }

        .top {
            background-color: red;
            transform: rotateY(60deg) translateZ(500px);
        }

        .bottom {
            background-color: yellow;
            transform: rotateY(120deg) translateZ(500px);
        }

        .front {
            background-color: greenyellow;
            transform: rotateY(180deg) translateZ(500px);
        }

        .behind {
            background-color: green;
            transform: rotateY(240deg) translateZ(500px);
        }

        .seven {
            background-color: greenyellow;
            transform: rotateY(300deg) translateZ(500px);
        }

        .eight {
            background-color: green;
            transform: rotateY(360deg) translateZ(500px);
        }
    </style>
</head>

<body>
    <ul>
        <li class="top"><img src="/img/1.png" alt=""></li>
        <li class="bottom"><img src="/img/1.png" alt=""></li>
        <li class="front"><img src="/img/1.png" alt=""></li>
        <li class="behind"><img src="/img/1.png" alt=""></li>
        <li class="seven"><img src="/img/1.png" alt=""></li>
        <li class="eight"> <img src="/img/1.png" alt=""></li>
    </ul>

</body>

</html>